<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <jsp:include page="../../import.jsp" flush="true"/>
    <title>报告列表</title>
    <jsp:include page="../../import.jsp" flush="true"/>
    <input type="hidden"  value="${prjId}"   name="prjId" id="prjId"/>

    <input type="hidden"  value="${isShowAc}"   name="isShowAc" id="isShowAc"/>
</head>
<style>
    table{
    border:1px solid #d0d0d0;
    }
    th{text-align: center;background:#e7fef4; border:1px solid #d0d0d0;}
    tr{border:1px solid #d0d0d0;height: 35px;}
    td{text-align: center;border:1px solid #d0d0d0;}

    .c_p_icon{
        display: inline-block;
        width: 20px;
    }

    .c_content{
        display: none;
    }
    .c_icon{
        background-position: 0 -140px;
    }
    .c_display .c_icon{
        background-position: 0 -160px;
    }
    .c_detail{
        display: none;
    }
    .c_display.c_detail{
        display: block;
    }
</style>
<script type="text/javascript">
function getReportDetail(reportNo,ysApplyId) {
    if(reportNo==null || reportNo==""){
        $.ligerDialog.SQalert({content: "元素报告ID不能是空！", SQ_type: "error"});
        return ;
    }
    if(ysApplyId==null || ysApplyId==""){
        $.ligerDialog.SQalert({content: "元素申请表ID不能是空！", SQ_type: "error"});
        return ;
    }
    Add_navTab("toYsejdReportDetail", "详细报表", '<%=path%>/riskctrl/channelRating/toYsejdReportDetailPage.do?reportNo='+reportNo+'&ysApplyId='+ysApplyId);

}
</script>
<body class="iframeBody">
<div class="searchArea">
    <form id="searchBar">

                    <table width="90%"  class="table_full">
                        <tr>
                            <th >序号</th>
                            <th >查询时间</th>
                            <th>查询范围</th>
                            <th >操作人</th>
                            <th ></th>
                        </tr>
                        <c:if test="${ysejdApplyVOList!=null}">
                        <c:forEach items="${ysejdApplyVOList }" var="YsejdApplyVO" varStatus="status">
                        <tr>
                            <td > ${status.index + 1}</td>
                            <td >
                                <fmt:formatDate value="${YsejdApplyVO.crtTm}" pattern="yyyy年MM月dd日" />
                            </td>
                            <td >
                                <fmt:formatDate value="${YsejdApplyVO.crtTm}" pattern="yyyy年MM月dd日" />---<fmt:formatDate value="${YsejdApplyVO.endDate}" pattern="yyyy年MM月dd日" />
                            </td>
                            <td >
                                    ${YsejdApplyVO.usrNm}
                            </td>
                            <td> <a class="sq-button-hasicon" href="javascript:getReportDetail('${YsejdApplyVO.reportNo}','${YsejdApplyVO.ysApplyId}')">报告</a></td>
                        </tr>
                        </c:forEach>
                        </c:if>

                    </table>


    </form>
</div>
</div>
<div id="ligergrid1" class="sq-grid"></div>
</body>
</html>